#Makefile

lattice-d2q9glut.x: main.cpp lbm2d.o
	g++ main.cpp lbm2d.o -lGL -lGLU -lglut -o lattice-d2q9glut.x

lbm2d.o: lbm2d.cpp lbm2d.h
	g++ -c lbm2d.cpp

clean:
	rm lbm2d.o lattice-d2q9glut.x debug-d2q9glut.x

debug: main.cpp lbm2d.cpp lbm2d.h
	g++ -c lbm2d.cpp -g
	g++ main.cpp lbm2d.o -lGL -lGLU -lglut -o debug-d2q9glut.x
